<div id="content">
    <div id="main_content" class="fixed clear">
			<?php $this->widget('application.components.Job.ViewJob', array(
				'data'=>$model, 'userUp'=>$userUp,
				'countBid'=>$countBid, 'averageMoney'=>$averageMoney,
			)); ?>
			
			<div id="comments">
			  <?php if($model->commentCount>=1): ?>
				<h3>
				  <?php echo $model->commentCount>1 ? $model->commentCount . ' 
			comments' : 'One comment'; ?>
				</h3>
				<?php $this->renderPartial('_comments',array(
				  'comments'=>$model->comments,
				)); ?>
			  <?php endif; ?>
			  <h3>Leave a Comment</h3>
			  <?php if(Yii::app()->user->hasFlash('commentSubmitted')): ?>
				<div class="flash-success">
				  <?php echo Yii::app()->user->getFlash('commentSubmitted'); ?>
				</div>
			  <?php else: ?>
				<?php $this->renderPartial('/comment/_form',array(
				  'model'=>$comment,
				)); ?>
			  <?php endif; ?>
			</div>
		
			<?php 
				// Hien thi nhung nguoi dang ky du an
				if (isset($bid)) { 
					$this->widget('application.components.Job.ViewBidJob', array(
						'bid' => $bid,
						'countBid' => $countBid,
					)); 
				} 
			?>
		
	</div>
</div>


